package com.rzjm.api.service;

import com.rzjm.api.entity.Shop;
import com.rzjm.api.entity.User;

import java.util.List;
import java.util.Map;

public interface ShopService extends BaseService<Shop>{

    /**
     *  上传数据到省平台
     * @param platformId
     */
    void uploadData(int platformId);


    Shop selectByUserId(Integer user_id);

    Shop selectById(Integer id);

    Shop selectById(Integer id,Integer bx_shop_id);

    List<Shop> selectMyList(User user, Integer state, String keyword, Integer shop_type, Integer device_type, Integer position, Integer pageIndex, Integer pageSize);

    List<Shop> selectApplyMyList(User user, Integer state, String keyword, Integer shop_type, Integer device_type, Integer position, Integer pageIndex, Integer pageSize);

    List<Shop> selectByState(Integer state, Integer shopType, Integer offset, Integer pageSize, double longitude, double latitude);

    List<Shop> selectByStateAndServiceType(Integer service_type, Integer state, Integer offset, Integer pageSize, double longitude, double latitude);

    List<Shop> selectBySearch(String shop_name,Integer shop_type,  Integer state, Integer offset, Integer pageSize, double longitude, double latitude);


    List<Shop> getListByAdminUserId(Map<String, Object> map);
}
